﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FunctionManage.aspx.cs" Inherits="FunctionManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>功能</title>
</head>
<body>
    <form id="frmFunctionManage" runat="server">
        <div style="width:960px;margin:0 auto;">
            <asp:ObjectDataSource ID="odsFunctionManage" runat="server" 
                SelectMethod="GetList" TypeName="Chain.BLL.SysModuleAction" 
                DataObjectTypeName="Chain.Model.SysModuleAction" 
                onupdated="odsFunctionManage_Updated" onupdating="odsFunctionManage_Updating" 
                UpdateMethod="Update">
                <SelectParameters>
                    <asp:QueryStringParameter DefaultValue="-100" Name="actionModuleID" 
                        QueryStringField="ModuleID" Type="Int32" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <asp:GridView ID="gvmFunctionManage" runat="server" BackColor="White" 
                BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                EnableModelValidation="True" AutoGenerateColumns="False" 
                DataSourceID="odsFunctionManage" Width="960px" 
                onrowdatabound="gvmFunctionManage_RowDataBound">
                <Columns>
                    <asp:CommandField ShowEditButton="True" CausesValidation="False" />
                    <asp:BoundField DataField="ActionID" HeaderText="ActionID" ReadOnly="True" 
                        SortExpression="ActionID" />
                    <asp:BoundField DataField="ActionCaption" HeaderText="ActionCaption" 
                        SortExpression="ActionCaption" />
                    <asp:BoundField DataField="ActionControl" HeaderText="ActionControl" 
                        SortExpression="ActionControl" />
                    <asp:BoundField DataField="ActionRemark" HeaderText="ActionRemark" 
                        SortExpression="ActionRemark" />
                    <asp:BoundField DataField="ActionModuleID" HeaderText="ActionModuleID" 
                        ReadOnly="True" SortExpression="ActionModuleID" >
                    <ItemStyle Width="50px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="是否加载" ShowHeader="False" 
                        ConvertEmptyStringToNull="False">
                        <ItemTemplate>
                            <asp:CheckBox ID="ckbIsPowerReg" runat="server" AutoPostBack="True" 
                                oncheckedchanged="ckbIsPowerReg_CheckedChanged" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                <RowStyle BackColor="White" ForeColor="#330099" />
                <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
            </asp:GridView>
            <br />
            <div style=" text-align: right; width:100%;"><asp:Button ID="Button2" 
                runat="server" Text="返回栏目管理" CausesValidation="False" onclick="Button2_Click" /></div>

            <div style="border:1px solid #ccc; padding:8px 15px;">
                <asp:Label ID="Label1" runat="server" Text="动作名称："></asp:Label>
                <asp:TextBox ID="txtActionCaption" runat="server" Width="304px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtActionCaption" Display="Dynamic">动作名称不能为空</asp:RequiredFieldValidator>
                <div style="height:5px;"></div>
                <asp:Label ID="Label2" runat="server" Text="控件名称："></asp:Label>
                <asp:TextBox ID="txtActionControl" runat="server" Width="304px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtActionControl" Display="Dynamic">控件名称不能为空</asp:RequiredFieldValidator>
                <div style="height:5px;"></div>
                <asp:Label ID="Label3" runat="server" Text="动作说明："></asp:Label>
                <asp:TextBox ID="txtActionRemark" runat="server" Width="304px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ErrorMessage="动作说明不能为空" ControlToValidate="txtActionRemark"></asp:RequiredFieldValidator>
                <div style="height:5px;"></div>
                <span><asp:Button ID="Button1" runat="server" Text="确定新增动作" 
                    onclick="Button1_Click" /></span>
                </div>
        </div>
    </form>
</body>
</html>
